package com.pureut.storage.dubbo;

import com.pureut.storage.service.WmsStockInfoService;
import com.sale.storage.api.RemoteStockInfoService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 仓库库存服务
 */
@RequiredArgsConstructor
@DubboService
@Service
public class RemoteStockInfoServiceImpl implements RemoteStockInfoService {

    private final WmsStockInfoService wmsStockInfoService;

    /**
     * 消息提醒-最小安全库存
     */
    @Override
    public void maxStock() throws Exception {
        wmsStockInfoService.maxStock();
    }
}
